class compNum {

    public static void max(int x,int y){
        if(x>y){
            System.out.println(x);
        } else {
            System.out.println(y);
        }
    }
    public static void max(double x,double y,int z){
        double max=x;
        if(max<y){
            max=y;
        }
        if(max<z){
            max=z;
        }
        System.out.println(max);
    }

    public static void main(String[] args) {
        int x=1,y=2;
        double a=1,b=2;
        int c=3;
        max(x,y);
        max(a,b,c);
    }
}
